﻿using System.Collections.Generic;
using Jayden.Dll.Core.Persistence;

namespace Jayden.Dll.Core.Membership
{
	public interface UserDataAccess : DataAccess<User>
	{
		User ReadByName(string username);
		User ReadByEmail(string email);
		List<User> FindAll(int page, int pageSize, out int totalRecords);
		List<User> FindByName(string nameLike, int page, int pageSize, out int totalRecords);
		List<User> FindByEmail(string emailLike, int page, int pageSize, out int totalRecords);

		List<User> Search(string term, bool name, bool email, bool firstName, bool lastName, int page, int pageSize, out int totalRecords);
	}
}
